
package modele;

import java.util.Collection;
import java.util.TreeSet;


public class Spe implements Comparable<Spe> {
    
    private String num;
     private Collection<Med> lesMeds = new TreeSet<Med>();

    public Spe(String num) {
        this.num = num;
    }

    public Collection<Med> getLesMeds() {
        return lesMeds ;
        
    }

    public String getNum() {
        return num;
    }
    
    
    @Override
    public int compareTo(Spe t) {
        
        return num.compareTo(t.num);
    }

    void addUnMed(Med unMed) {
        this.lesMeds.add(unMed);
    }
}